package com.rsy.common.To.es;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 *  sku保存到es中的数据模型
 */
@Data
public class SkuEsModel {


    private Long skuId;

    private Long spuId;

    private String skuTitle;  //销售属性标题

    private BigDecimal skuPrice; //销售属性价格

    private String skuImg;

    private Long saleCount; //销量

    private Boolean hasStock;

    private Long hotScore;

    private Long brandId;

    private Long catalogId;

    private String brandName; //品牌

    private String brandImg;

    private String catalogName;

    private List<Attrs> attrs;



    /**
     * 商品的的规格属性（用来被检索的）
     */
    @Data
    public static class Attrs {
        private Long attrId;
        private String attrName;
        private String attrValue;
    }


}
